<?php

//Affectation des variables
    $titre = VariablesGlobales::$uneNews->titre;
    $texte = VariablesGlobales::$uneNews->texte;
    $date = ModeleNews::getDate();
    $HMS=  ModeleNews::getHMS();
    ?>

    <form action="index.php?controleur=News&action=modifier&id=<?php echo $id ?>" method="POST" class="col-lg-6">
        <table class="table table-bordered">
            <h2>Modification de la news</h2>
            <tr class="alert-info">
                <td>titre</td>
                <td>texte</td>
                <td>Date</td>
                <td>A</td>
           
            </tr>
            <tr>
                <td><input type="text" name="titre" value="<?php echo $titre ?>" /></td>
                <td><input type="text" name="texte" value="<?php echo $texte?>" /></td>
                <td><input type="text" name="date" value="<?php echo $date?>" /></td>
                <td><input type="text" name="HMS" value="<?php echo $HMS?>" /></td>
            </tr>

        </table>
        <center><input type="submit" name="valider" value="Modifier" class="btn btn-success"/></center>
    </form>
    <?php

